package com.atchangsha.system.constant;

import com.atchangsha.system.common.exception.EnumInterface;

public class CustomerConstants {
    public enum CustomerEnum implements EnumInterface {
        GET_MEMBER_FAIL(-1100, "没有查询到该用户"),
        GET_MEMBER_SUCCESS(1101, "查询成功"),
        FEIGN_CLIENT_FAIL(-1102, "远程调用失败"),
        REGISTRY_MEMBER_SUCCESS(1103, "注册会员成功"),
        REGISTRY_MEMBER_FAIL(-1104, "注册会员失败"),
        UPDATED_MEMBER_SUCCESS(1105, "修改会员成功"),
        UPDATED_MEMBER_FAIL(-1106, "修改会员失败"),
        DELETE_MEMBER_SUCCESS(1107, "删除会员成功"),
        DELETE_MEMBER_FAIL(-1108, "删除会员失败"),
        MEMBER_IS_EXISTING(-1109, "用户已存在"),
        PHONE_IS_NULL(-1110, "电话号码不存在"),
        NOT_HAS_POINT(-1111, "没有对应积分信息"),
        GET_MEMBER_LEVEL_AND_DISCOUNT_SUCCESS(1112, "成功获取会员等级和折扣"),
        SAVE_COUPON_CUSTOMER_FAIL(-1113,"保存用户id和优惠券id成功失败"),
        GET_COUPON_FAIL(-1114,"优惠券以被领完"),
        UPDATE_COUPON_NUMBER_FAIL(-1115,"修改优惠券余量失败"),
        GET_COUPON_SUCCESS(1116,"领取优惠券成功"),




        ;
        private int code;
        private String msg;

        CustomerEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }


        @Override
        public int getCode() {
            return code;
        }

        @Override
        public String getMsg() {
            return msg;
        }
    }
}
